We were failing to do that, leading to progress not disappearing
anymore after it was initially shown, in the gtk3-widget-factory
entry progress example.
gtk_entry_stop_pulse_mode (entry);
gtk_entry_ensure_progress_gadget (entry);
- gtk_css_gadget_set_visible (private->progress_gadget, TRUE);
fraction = CLAMP (fraction, 0.0, 1.0);
private->progress_fraction = fraction;
if (fraction != old_fraction)
{
+ gtk_css_gadget_set_visible (private->progress_gadget, fraction > 0);
+
g_object_notify_by_pspec (G_OBJECT (entry), entry_props[PROP_PROGRESS_FRACTION]);
gtk_widget_queue_allocate (widget);
}